<!--
  
   GameOptionsPanel.xaml
  
   Copyright (c) 2007 Mike Strobel
  
   This source code is subject to the terms of the Microsoft Reciprocal License (Ms-RL).
   For details, see <http://www.opensource.org/licenses/ms-rl.html>.
  
   All other rights reserved.
  
  -->
<UserControl x:Class="Supremacy.Client.GameOptionsPanel"
             xmlns="http://schemas.microsoft.com/netfx/2007/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             TextBlock.Foreground="{StaticResource LCARS_BeigeTextBrush}"
             TextBlock.FontFamily="{StaticResource LCARS_ParagraphFont}"
             TextBlock.FontSize="12pt">
  <Grid IsEnabled="{Binding Path=IsFrozen, Converter={StaticResource IsFalseValueConverter}}">
    <Grid.ColumnDefinitions>
      <ColumnDefinition/>
      <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition/>
      <RowDefinition/>
      <RowDefinition/>
      <RowDefinition/>
      <RowDefinition/>
      <RowDefinition/>
      <RowDefinition/>
    </Grid.RowDefinitions>
    <Border Grid.Column="0"
            Grid.ColumnSpan="2"
            Grid.Row="0"
            HorizontalAlignment="Center"
            Margin="0,0,0,14"
            BorderBrush="White"
            BorderThickness="2">
      <Image x:Name="GalaxyImage"
             Stretch="Uniform"  
             StretchDirection="Both"/>
    </Border>
    <TextBlock Grid.Column="0"
               Grid.Row="1"
               Margin="0,0,0,0"
               Text="Galaxy Size:"
               VerticalAlignment="Center"/>
    <TextBlock Grid.Column="0"
               Grid.Row="2"
               Margin="0,7,0,0"
               Text="Galaxy Shape:"
               VerticalAlignment="Center"/>
    <TextBlock Grid.Column="0"
               Grid.Row="3"
               Margin="0,7,0,0"
               Text="Star Density:"
               VerticalAlignment="Center"/>
    <TextBlock Grid.Column="0"
               Grid.Row="4"
               Margin="0,7,0,0"
               Text="Planet Density:"
               VerticalAlignment="Center"/>
    <TextBlock Grid.Column="0"
               Grid.Row="5"
               Margin="0,7,0,0"
               Text="Tech Level:"
               VerticalAlignment="Center" />
    <TextBlock Grid.Column="0"
               Grid.Row="6"
               Margin="0,7,0,0"
               Text="Minor Races:"
               VerticalAlignment="Center" />
    <ComboBox x:Name="lstGalaxySize"
              Grid.Column="1"
              Grid.Row="1"
              SelectedItem="{Binding Path=GalaxySize, Mode=TwoWay}"
              Margin="7,0,0,0"
              IsEditable="False"
              IsReadOnly="True"
              VerticalAlignment="Center"/>
    <ComboBox x:Name="lstGalaxyShape"
              Grid.Column="1"
              Grid.Row="2"
              SelectedItem="{Binding Path=GalaxyShape, Mode=TwoWay}"
              Margin="7,7,0,0"
              IsEditable="False"
              IsReadOnly="True"
              VerticalAlignment="Center"/>
    <ComboBox x:Name="lstStarDensity"
              Grid.Column="1"
              Grid.Row="3"
              SelectedItem="{Binding Path=StarDensity, Mode=TwoWay}"
              Margin="7,7,0,0"
              IsEditable="False"
              IsReadOnly="True"
              VerticalAlignment="Center"/>
    <ComboBox x:Name="lstPlanetDensity"
              Grid.Column="1"
              Grid.Row="4"
              SelectedItem="{Binding Path=PlanetDensity, Mode=TwoWay}"
              Margin="7,7,0,0"
              IsEditable="False"
              IsReadOnly="True"
              VerticalAlignment="Center"/>
    <ComboBox x:Name="lstTechLevel"
              Grid.Column="1"
              Grid.Row="5"
              SelectedItem="{Binding Path=StartingTechLevel, Mode=TwoWay}"
              Margin="7,7,0,0"
              IsEditable="False"
              IsReadOnly="True"
              VerticalAlignment="Center" />
    <ComboBox x:Name="lstMinorRaces"
              Grid.Column="1"
              Grid.Row="6"
              SelectedItem="{Binding Path=MinorRaceFrequency, Mode=TwoWay}"
              Margin="7,7,0,0"
              IsEditable="False"
              IsReadOnly="True"
              VerticalAlignment="Center" />
  </Grid>
</UserControl>
